package com.cy.chatTest.db;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DbUtil {

    @Autowired
    public UserInfoRepository userInfoRepository;

    @Autowired
    public MessageInfoRepository messageInfoRepository;



    static DbUtil instance;

    public static DbUtil getInstance(){
        return instance;
    }

    @Autowired
    public DbUtil(){
        instance = this;
    }




}
